home *** CD-ROM | disk | FTP | other *** search
- PXFKILL(3F) Last changed: 2-26-98
-
-
- NNAAMMEE
- PPXXFFKKIILLLL - Sends a signal to a process or group of processes
-
- SSYYNNOOPPSSIISS
- SSUUBBRROOUUTTIINNEE PPXXFFKKIILLLL ((_i_p_i_d,, _i_s_i_g,, _i_e_r_r_o_r))
- IINNTTEEGGEERR _i_p_i_d,, _i_s_i_g,, _i_e_r_r_o_r
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- IEEE standard interface for FORTRAN 77
-
- DDEESSCCRRIIPPTTIIOONN
- The PPXXFFKKIILLLL subroutine uses the kkiillll(2) system call to send a signal
- to a process or group of processes.
-
- The following is a list of valid arguments for this routine:
-
- _i_p_i_d A default integer input variable containing the process PID.
- The signal will be sent to a process or group of processes
- specified by _i_p_i_d.
-
- _i_s_i_g A default integer output variable containing the signal to
- be sent.
-
- _i_e_r_r_o_r A default integer output variable that contains zero if
- PPXXFFKKIILLLL was successful and nonzero if PPXXFFKKIILLLL was not
- successful.
-
- This subroutine may return any of the following error values:
-
- EEIINNVVAALL The value of the _i_s_i_g argument is an invalid or
- unsupported signal number.
-
- EEPPEERRMM The process does not have permission to send the _i_s_i_g
- signal to any receiving process.
-
- EESSRRCCHH No process or process group can be found corresponding
- to the process ID specified by _i_p_i_d.
-
- On UNICOS and UNICOS/mk systems, the subroutine may also return:
-
- EEPPEERRMM The value of the _i_p_i_d argument is 1 (proc1) and _i_s_i_g is
- either SSIIGGKKIILLLL or SSIIGGSSTTOOPP.
-
- On IRIX systems, it may also return:
-
- EEPPEERRMM The value of the _i_p_i_d argument is 1 (proc1) and _i_s_i_g is
- SSIIGGKKIILLLL.
-
- EESSRRCCHH The process group was given as 0 but the sending
- process does not have a process group
-
- On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
- default when compiling programs with the MIPSpro 7 Fortran 90 compiler
- or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
- 7.2 F77 compiler.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
- kind unless documented otherwise. On UNICOS and UNICOS/mk, default
- kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
- IRIX systems, the default kind is KKIINNDD==44.
-
- NNOOTTEESS
- Replace any Fortran reference to kkiillll(()) with a subroutine call to
- PPXXFFKKIILLLL.
-
- EEXXAAMMPPLLEESS
- program pxftest
- integer ipid, isig, ierror
-
- CALL PXFFORK(ipid,ierror)
- if (ierror .ne. 0) then
- print *,'FAILED: PXFFORK call failed with error = ',ierror
- print *,'ipid=',ipid
- else
- print *,'PASSED: PXFFORK call returned no error'
- endif
- call PXFCONST("SIGKILL",isig,ierror)
- if(ierror .ne. 0) then
- print *, 'PXFCONST FAILED', ierror
- print *,'isig=',isig
- else
- print *, 'PXFCONST PASSED'
- endif
- CALL PXFKILL(ipid, isig, ierror)
- if (ierror .ne. 0) then
- print *,'FAILED: PXFKILL call failed with error = ',ierror
- print *,'ipid=',ipid
- print *,'isig=',isig
- else
- print *,'PASSED: PXFKILL call returned no error'
- endif
- end
-
- SSEEEE AALLSSOO
- kkiillll(2)
-
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication
- SR-2165, for the printed version of this man page.
-